﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace FanaticRock.MediaSource.BilibiliAPI.Helpers
{
    public static class HttpClientHelper
    {
        private static HttpClient _httpClient;

        public static void Init(HttpClient httpClient)
        {
            _httpClient = httpClient;
        }

        public static HttpClient GetHttpClient()
        {
            if (_httpClient == null)
            {
                _httpClient = new HttpClient();
            }

            return _httpClient;
        }
    }
}
